home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1995 April / Internet Tools.iso / infoserv / www / cern / doc / www-talk.archive.Z / www-talk.archive / text0104.txt < prev    next >
Encoding:
Text File  |  1992-11-30  |  1.6 KB  |  41 lines

  1. I would like to include non-text data (e.g. bitmaps, sound)
  2. in my hyperdocuments.
  3.  
  4. One way to do this would be:
  5.  
  6. 1) extend HTML to allow for such data, e.g.  a tag like
  7. <BITMAP height=100 width=100 encoding=FAXG4>
  8.  
  9. (I think the WWW protocols would require that the data be uuencoded,
  10. since I don't think they will allow 8bit data)
  11.  
  12. 2) extend Viola (my WWW browser of choice) to recognize
  13. this tag and do the right thing with it, i.e. uudecode it then
  14. start a display program (or place the bitmap into the
  15. document)
  16.  
  17. A related generalization would be if the browsing program were able to
  18. choose among a set of alternative display programs based on the "type"
  19. of the document linked to.  In this case, I could have an anchor
  20. that pointed to a bitmap file in addition to (or instead of) placing
  21. bitmaps within HTML files.
  22.  
  23. This sort of thing is possible in both WAIS and MetaMail.  In document
  24. has a type known to the WAIS server, the client inspects this type and
  25. selects a display program according to the values in the Xwais.filters
  26. X resource; In MetaMail each piece of mail is labeled with an explicit
  27. type; MetaMail consults the mailcap file to determine how to display
  28. each type.
  29.  
  30. I see that anchors in WWW can have a TYPE attibute, but I can't tell
  31. whether this is the type of the link or of the thing linked to.  If
  32. the former, then I see no easy way to do it in WWW, short of adding
  33. the facility to Viola to decide the document type by inspecting it
  34. (e.g. looking for magic header bits which at least some data formats
  35. support.)
  36.  
  37. I would be grateful for your comments on this matter.
  38.  
  39. best wishes
  40.  
  41.